﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Hi_Baidu.Entry.CollectionObject;
using Hi_Baidu.ProcessModel;

namespace Hi_Baidu.Timer.TalkMessage
{
    class WindowShadowTimeOutEvent : TimeOutEvent
    {
        Friend friend;
        public WindowShadowTimeOutEvent(Friend friend, String Key, int Interval, int TryCount)
            : base(Key, Interval, TryCount)
        {
            this.friend = friend;
            this.OnTryFull += new EventHandler<EventArgs>(WindowShadowTimeOutEvent_OnTryFull);
        }

        void WindowShadowTimeOutEvent_OnTryFull(object sender, EventArgs e)
        {
            ChatViewModel.AppendSendShadowFail(friend);
        }
    }
}
